package com.example.demo1122.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.demo1122.DTO.StudentDTO;
import com.example.demo1122.domain.ResponseResult;
import com.example.demo1122.entity.Student;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author baomidou
 * @since 2023-12-07
 */
public interface IStudentService extends IService<Student> {

    public ResponseResult saveStudent(Student student);

    ResponseResult saveOrUpdateStudent(Student student, Integer classID);

    ResponseResult saveStudentList(List<Student> studentList, Integer classID);
    void findAll();
    ResponseResult updateStudent(StudentDTO student);
//    Page<Student> findPage(Page<Student> objectPage, String studentID, String name);

    ResponseResult updateStudentpassword(Student student);

    //    @Override
    //    public Page<Student> findPage(Page<Student> page, String studentID, String name) {
    //        return studentMapper.findPage(page, studentID, name);
    //    }
    Page<StudentDTO> findPage(int pageNum, int pageSize, String studentID, String name);

    List<Student> findStudentsByClassId(Integer classID);

    ResponseResult findallStudentsByClassId(Integer classID);

    Page<StudentDTO> findPageByClassId(Integer pageNum, Integer pageSize, Integer classID, String studentID, String name);

    ResponseResult findclassByStudentId(String studentID);

    ResponseResult getClassInfo(String studentID);

    ResponseResult getProfile(String studentID);
}
